package com.cxs.musicplaywidget.constant;

/**
 * @ClassName Const
 * @Author cxs
 * @Version 1.0
 * @Description 全局常量
 * @Date 2022/03/07
 */
public class Const {
    public static final int ABILITY_TYPE = 0;
    public static final int WIDGET_TYPE = 1;

    public class WIDGET {
        public static final String DATA_DEVICE_LIST_KEY = "deviceList";
        public static final String DATA_DEVICE_COUNT_KEY = "deviceColumns";
        public static final String DATA_IS_PLAYING_KEY = "isPlaying";
        public static final String DATA_CONNECTED_KEY = "connected";
        public static final String DATA_WAITING_KEY = "waiting";
        public static final String DATA_PLAY_INDEX_KEY = "playindex";
        public static final String DATA_PLAY_LIST_KEY = "playList";
        public static final String DATA_PLAY_LIST_INDEX_KEY = "index";
        public static final String DATA_PLAY_LIST_NAME_KEY = "name";
        public static final String DATA_PLAY_LIST_TITLE_KEY = "title";
        public static final String DATA_PLAY_LIST_ARTIST_KEY = "artist";
        public static final String DATA_PLAY_LIST_CURRENT_KEY = "current";
        public static final String DATA_PLAYING_CLS_KEY = "playingCls";
        public static final String DATA_WAVE_IMAGE_SRC_KEY = "waveImageSrc";
        public static final String DATA_PLAY_LIST_MY_CURRENT_KEY = "myCurrent";
        public static final String DATA_MY_PLAY_IMAGE_KEY = "myPlay";
        public static final String DATA_IS_REMOTE_KEY = "isRemote";

    }

    /**
     * IDL通信消息码
     */
    public class IDL {
        /**
         * 通用消息码
         */
        public static final int REQUEST_CODE = 1001;
        /**
         * 获取歌曲数据流的消息码
         */
        public static final int REQUEST_GET_MUSIC_DATA_CODE = 1002;
        /**
         * 获取歌曲封面的消息码
         */
        public static final int REQUEST_GET_THUMBNAIL_CODE = 1003;
        /**
         * 通信成功
         */
        public static final int ERR_OK = 0;
        /**
         * 通信失败
         */
        public static final int ERR_FAIL = -1;
    }
}
